Skip to content

build dist for x86_64-pc-solaris and sparcv9-sun-solaris #138699

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 4, 2025

Conversation

psumbera
Copy link
Contributor

@psumbera psumbera commented Mar 19, 2025

FIx for #126025

Note that this needs Nix with following commit:
nix-rust/nix@0f45593
Unfortunatelly there is no new release.

And for sparcv9 it needs also:
libffi-rs/libffi-rs#103

For now it therefore uses cargo patch infrastructure for these.

try-job: dist-sparcv9-solaris
try-job: dist-x86_64-solaris
try-job: dist-various-2
try-job: dist-x86_64-illumos

@rustbot
Copy link
Collaborator

rustbot commented Mar 19, 2025

r? @marcoieni

rustbot has assigned @marcoieni.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

@rustbot rustbot added A-testsuite Area: The testsuite used to check the correctness of rustc S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) T-infra Relevant to the infrastructure team, which will review and decide on the PR/issue. labels Mar 19, 2025
@rustbot
Copy link
Collaborator

rustbot commented Mar 19, 2025

rust-analyzer is developed in its own repository. If possible, consider making this change to rust-lang/rust-analyzer instead.

cc @rust-lang/rust-analyzer

These commits modify the Cargo.lock file. Unintentional changes to Cargo.lock can be introduced when switching branches and rebasing PRs.

If this was unintentional then you should revert the changes before this PR is merged.
Otherwise, you can ignore this comment.

@rust-log-analyzer

This comment has been minimized.

@psumbera psumbera force-pushed the solaris-ci-build3 branch from 3b9fbda to 0deec39 Compare March 19, 2025 11:00
@rust-log-analyzer

This comment has been minimized.

@jieyouxu
Copy link
Member

(That being said, thank you for investigating fixes for the Solaris CI)

@bors
Copy link
Collaborator

bors commented Apr 15, 2025

☔ The latest upstream changes (presumably #139826) made this pull request unmergeable. Please resolve the merge conflicts.

@psumbera psumbera force-pushed the solaris-ci-build3 branch from 0deec39 to f556156 Compare April 16, 2025 10:15
@marcoieni
Copy link
Member

Is this ready for review? 👀

@psumbera psumbera mentioned this pull request Apr 17, 2025
matthiaskrgr added a commit to matthiaskrgr/rust that referenced this pull request Apr 17, 2025
rust-timer added a commit to rust-lang-ci/rust that referenced this pull request Apr 18, 2025
Rollup merge of rust-lang#139969 - psumbera:libc-rust-analyzer, r=lnicola

update libc

This is needed for rust-lang#138699 (comment)
github-actions bot pushed a commit to rust-lang/miri that referenced this pull request Apr 18, 2025
@psumbera psumbera force-pushed the solaris-ci-build3 branch from f556156 to 7152b36 Compare April 18, 2025 05:49
github-actions bot pushed a commit to rust-lang/rustc-dev-guide that referenced this pull request Apr 19, 2025
@jieyouxu jieyouxu removed the T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) label Apr 22, 2025
BINUTILS_URL="https://ftp.gnu.org/gnu/binutils/$BINUTILS_TAR"


download_file() {
Copy link
Member

@marcoieni marcoieni Apr 22, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I saw this function is duplicated from illuminos-toolchain.sh
Can you move it to a shared script file or similar and source the file? so that we avoid having duplicate code.

Same is true for other parts of the scripts which are very similar

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I saw this function is duplicated from illuminos-toolchain.sh Can you move it to a shared script file or similar and source the file? so that we avoid having duplicate code.

I have moved it into shared.sh.

Same is true for other parts of the scripts which are very similar

There are no other common functions. While the structure looks similiar I don't think it's good to connect these two more.

@marcoieni
Copy link
Member

marcoieni commented Apr 22, 2025

Sorry for the wait, I'm having a look now. I'm familiar with the Rust CI in general but not with solaris specifically, so please don't assume I'm familiar with the scripts you edited 👍

From what I can see you are extracting the build of x86_64-solaris and sparcv9-solaris from the dist-various-2 job.
My first question is: why? What's the advantage with respect to keeping these jobs in the dist-various-2 job?

The second question is: the dockerfile of dist-various-2 uses ubuntu:22.04. Why are you using ubuntu:18.04 for the new dockerfiles? Is it possible to use newer ubuntu images?
Same for older software like python2. Previously python2 wasn't needed in dist-various-2, why do we need it now?

Also can you explain how this PR fixes the issue you linked?

@psumbera psumbera force-pushed the solaris-ci-build3 branch from 7152b36 to d5925a8 Compare April 24, 2025 07:10
@psumbera
Copy link
Contributor Author

From what I can see you are extracting the build of x86_64-solaris and sparcv9-solaris from the dist-various-2 job. My first question is: why? What's the advantage with respect to keeping these jobs in the dist-various-2 job?

dist-various-2 was generating just standard library for Solaris. Now also host tools are generated. So I think it's correct to move it outside of dist-various-2 job and have separate job like Illumos or BSDs.

The second question is: the dockerfile of dist-various-2 uses ubuntu:22.04. Why are you using ubuntu:18.04 for the new dockerfiles? Is it possible to use newer ubuntu images? Same for older software like python2. Previously python2 wasn't needed in dist-various-2, why do we need it now?

I have updated change to use ubuntu:22.04 and python3.

Also can you explain how this PR fixes the issue you linked?

I was asked in #126025 to do clean up. I decided to clean it up by compleltely removing all Solaris related stuff from dist-various-2 and have bright new build job for Solaris :-)

Copy link
Member

@marcoieni marcoieni left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few minor comments.
@Kobzol can you have a look at this PR as well?

workingjubilee added a commit to workingjubilee/rustc that referenced this pull request May 30, 2025
…rcoieni

Increase timeout for new bors try builds

To sync it with [homu](https://github.com/rust-lang/homu/blob/master/cfg.production.toml#L34). Saw the timeout [here](rust-lang#138699 (comment)), it was set to only 4 hours for new bors.

r? ``@marcoieni``
rust-timer added a commit that referenced this pull request May 31, 2025
Rollup merge of #141771 - Kobzol:bors-increase-timeout, r=marcoieni

Increase timeout for new bors try builds

To sync it with [homu](https://github.com/rust-lang/homu/blob/master/cfg.production.toml#L34). Saw the timeout [here](#138699 (comment)), it was set to only 4 hours for new bors.

r? ``@marcoieni``
github-actions bot pushed a commit to rust-lang/miri that referenced this pull request May 31, 2025
Increase timeout for new bors try builds

To sync it with [homu](https://github.com/rust-lang/homu/blob/master/cfg.production.toml#L34). Saw the timeout [here](rust-lang/rust#138699 (comment)), it was set to only 4 hours for new bors.

r? ``@marcoieni``
@psumbera
Copy link
Contributor Author

psumbera commented Jun 2, 2025

@bors2 try

@rust-bors
Copy link

rust-bors bot commented Jun 2, 2025

@psumbera: 🔑 Insufficient privileges: not in try users

@jieyouxu
Copy link
Member

jieyouxu commented Jun 2, 2025

@bors2 try

@rust-bors
Copy link

rust-bors bot commented Jun 2, 2025

⌛ Trying commit 0f1579b with merge 1a278b8

rust-bors bot added a commit that referenced this pull request Jun 2, 2025
build dist for x86_64-pc-solaris and sparcv9-sun-solaris

<!-- homu-ignore:start -->
FIx for #126025

Note that this needs Nix with following commit:
nix-rust/nix@0f45593
Unfortunatelly there is no new release.

And for sparcv9 it needs also:
libffi-rs/libffi-rs#103

For now it therefore uses cargo patch infrastructure for these.

<!-- homu-ignore:end -->
try-job: dist-sparcv9-solaris
try-job: dist-x86_64-solaris
@rust-bors
Copy link

rust-bors bot commented Jun 2, 2025

☀️ Try build successful (CI)
Build commit: 1a278b8 (1a278b8e761394e5409f5ebe9b4ab99f94cfcfb7)

@marcoieni
Copy link
Member

This looks good. I'm trying the other jobs edited by this pr to make sure nothing broke and if the try jobs work I'll approve.

@bors2 try

@rust-bors
Copy link

rust-bors bot commented Jun 3, 2025

⌛ Trying commit 0f1579b with merge da4fc05

rust-bors bot added a commit that referenced this pull request Jun 3, 2025
build dist for x86_64-pc-solaris and sparcv9-sun-solaris

<!-- homu-ignore:start -->
FIx for #126025

Note that this needs Nix with following commit:
nix-rust/nix@0f45593
Unfortunatelly there is no new release.

And for sparcv9 it needs also:
libffi-rs/libffi-rs#103

For now it therefore uses cargo patch infrastructure for these.

<!-- homu-ignore:end -->
try-job: dist-sparcv9-solaris
try-job: dist-x86_64-solaris
try-job: dist-various-2
try-job: dist-x86_64-illumos
@rust-bors
Copy link

rust-bors bot commented Jun 3, 2025

☀️ Try build successful (CI)
Build commit: da4fc05 (da4fc05f7b652b51d3bfdd1538406ad5a6204a7b)

@marcoieni
Copy link
Member

@bors r+

@bors
Copy link
Collaborator

bors commented Jun 3, 2025

📌 Commit 0f1579b has been approved by marcoieni

It is now in the queue for this repository.

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Jun 3, 2025
bors added a commit that referenced this pull request Jun 4, 2025
Rollup of 8 pull requests

Successful merges:

 - #136687 (Improve the documentation of `Display` and `FromStr`, and their interactions)
 - #137306 (Remove `i128` and `u128` from `improper_ctypes_definitions`)
 - #138699 (build dist for x86_64-pc-solaris and sparcv9-sun-solaris)
 - #141250 (add s390x z17 target features)
 - #141467 (make `OsString::new` and `PathBuf::new` unstably const)
 - #141871 (index: add method for checking range on DenseBitSet)
 - #141888 (Use non-2015 edition paths in tests that do not test for their resolution)
 - #142000 (bootstrap: don't symlink source dir into stage0 sysroot)

r? `@ghost`
`@rustbot` modify labels: rollup
@bors bors merged commit 8ae7ca0 into rust-lang:master Jun 4, 2025
9 checks passed
@rustbot rustbot added this to the 1.89.0 milestone Jun 4, 2025
rust-timer added a commit that referenced this pull request Jun 4, 2025
Rollup merge of #138699 - psumbera:solaris-ci-build3, r=marcoieni

build dist for x86_64-pc-solaris and sparcv9-sun-solaris

try-job: dist-sparcv9-solaris
try-job: dist-x86_64-solaris
try-job: dist-various-2
try-job: dist-x86_64-illumos
github-actions bot pushed a commit to rust-lang/miri that referenced this pull request Jun 5, 2025
Rollup of 8 pull requests

Successful merges:

 - rust-lang/rust#136687 (Improve the documentation of `Display` and `FromStr`, and their interactions)
 - rust-lang/rust#137306 (Remove `i128` and `u128` from `improper_ctypes_definitions`)
 - rust-lang/rust#138699 (build dist for x86_64-pc-solaris and sparcv9-sun-solaris)
 - rust-lang/rust#141250 (add s390x z17 target features)
 - rust-lang/rust#141467 (make `OsString::new` and `PathBuf::new` unstably const)
 - rust-lang/rust#141871 (index: add method for checking range on DenseBitSet)
 - rust-lang/rust#141888 (Use non-2015 edition paths in tests that do not test for their resolution)
 - rust-lang/rust#142000 (bootstrap: don't symlink source dir into stage0 sysroot)

r? `@ghost`
`@rustbot` modify labels: rollup
@psumbera
Copy link
Contributor Author

psumbera commented Jun 6, 2025

Seems that only llvm-tools are newly delivered. Where are others?
https://rust-lang.github.io/rustup-components-history/x86_64-pc-solaris.html

@nikic
Copy link
Contributor

nikic commented Jun 6, 2025

@psumbera Missing changes to build-manifest: https://github.com/rust-lang/rust/blob/master/src/tools/build-manifest/src/main.rs

jhpratt added a commit to jhpratt/rust that referenced this pull request Jun 7, 2025
…oieni

Add solaris targets to build-manifest

this is follow up for: rust-lang#138699
jhpratt added a commit to jhpratt/rust that referenced this pull request Jun 7, 2025
…oieni

Add solaris targets to build-manifest

this is follow up for: rust-lang#138699
rust-timer added a commit that referenced this pull request Jun 7, 2025
Rollup merge of #142110 - psumbera:solaris-ci-build4, r=marcoieni

Add solaris targets to build-manifest

this is follow up for: #138699
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-testsuite Area: The testsuite used to check the correctness of rustc S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-infra Relevant to the infrastructure team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants